-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated testIds in RN StoryListView to use kind #3129
Conversation
@@ -14,12 +14,12 @@ SectionHeader.propTypes = { | |||
selected: PropTypes.bool.isRequired, | |||
}; | |||
|
|||
const ListItem = ({ title, selected, onPress }) => ( | |||
const ListItem = ({ kind, title, selected, onPress }) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a propType for this to make eslint happy =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hypnosphi, thanks edited the file through github and missed the propTypes below.
Codecov Report
@@ Coverage Diff @@
## master #3129 +/- ##
=========================================
+ Coverage 36.08% 36.1% +0.01%
=========================================
Files 438 438
Lines 9447 9443 -4
Branches 911 886 -25
=========================================
Hits 3409 3409
- Misses 5451 5464 +13
+ Partials 587 570 -17
Continue to review full report at Codecov.
|
Updated testIds in RN StoryListView to use kind
Hello,
I've been working on integrating Detox with storybook. Everything looks really promising because of included StoryListView in RN storybook. The only issue with it is that it doesn't scope stories by the kind. So if you have to stories with same name i.e.
Default state
they will both have same testIDs and it will be difficult to understand which story to click.Issue: Not Scoped testIDS in StoryListView.
What I did
Added kind to testID.
How to test
N/A (no tests here)
Is this testable with jest or storyshots?
Could be.
Does this need a new example in the kitchen sink apps?
No.
Does this need an update to the documentation?
No.